package cn.hesheng.thread;

import cn.hesheng.Bunessis;

public class ThreadA extends Thread {
	
	Bunessis bu;
	
	
	public ThreadA() {
	}
	
	public ThreadA(Bunessis bu) {
		this.bu = bu;
	}


	@Override
	public void run() {
		if (bu == null) {
			System.out.println("thread A is call...");
		} else {
			bu.aMethod();
		}
		
	}
	
}
